package com.oop.InterfaceIsolation;

/**
 * @author Vhong
 * @version 1.0
 * 测试
 */
public class TestBehaver {
    public static void main(String[] args) {
        //犬科
        Dog dog = new Dog();
        PetDog Wancai = new PetDog("旺财");
        dog.eat(Wancai);
        dog.walk(Wancai);
        dog.run(Wancai);

        //鸟
        Bird bird = new Bird();
        Dove dove = new Dove("鸽子");
        bird.hunt(dove);
        bird.slide(dove);
        bird.fly(dove);
    }
}
